package cn.edu.hust.sse.software7.class3.service;

import java.util.Date;
import java.util.List;

import cn.edu.hust.sse.software7.class3.entities.EBTrading;

public interface EBTradingService {

	void addTrading(EBTrading trade);
	
	List<EBTrading> getTradingHistoryByUser(Long userId);
	
	List<EBTrading> getTradingHistoryByProd(Long prodId);
	
	List<EBTrading> getTradingHistoryByDateScope(Date from, Date to);
	
	List<EBTrading> getAllTradingHistory();
	
	EBTrading getTradingById(Long tradeId);
	
	void deleteTradingHistoryByUser(Long userId);
	
	void deleteTradingHistoryByProd(Long prodId);
}
